package utils.global.limitflow;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import utils.global.UtilsConfig;

@ConditionalOnProperty(
        value = "utils.limitflow.enabled",
        havingValue = "true",
        matchIfMissing = true
)
@EnableConfigurationProperties(LimitFlowProprtties.class)
@Import(LimitFlowAop.class)
@Slf4j
public class LimitFlowConfig {
    public LimitFlowConfig() {
        log.info(String.format(UtilsConfig.printInfo, "limitflow"));
    }
}
